<%@page import="com.kaishengit.entity.Product"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
    <title>My JSP 'main.jsp' starting page</title>
    <link href="style/bootstrap.min.css" rel="stylesheet">
    <style type="text/css">
    	body{
    		padding-top:70px;
    	}
    </style>
  </head>
  
  <body>
    <div class="topbar" data-dropdown="dropdown">
		<div class="topbar-inner">
			<div class="container">
				<h3>
					<a href="#">JSP-CRUD</a>
				</h3>
				<ul class="nav">
					<li class="active">
						<a href="#">Home</a>
					</li>
					<li>
						<a href="#">Other</a>
					</li>
				</ul>
				<ul class="nav secondary-nav">
					<li class="dropdown">
						<a class="dropdown-toggle" href="#">Tom</a>
						
					</li>
				</ul>
			</div>
		</div>
	</div>
	
	<div class="container">
		<form action="product.jspx?task=edit" method="post">
			<fieldset>
				<legend>编辑商品</legend>
				
				<!-- 隐藏域 -->
				<input type="hidden" name="id" value="${pro.id }"/>
				
				<div class="clearfix">
					<label for="xlInput">商品名称</label>
					<div class="input">
						<input type="text" class="span2 text" name="prodname" value="${pro.prodName }">
					</div>
				</div>
				<div class="clearfix">
					<label for="xlInput">商品价格</label>
					<div class="input">
						<input type="text" class="span2 text" name="price" value="${pro.price }">
					</div>
				</div>
				<div class="actions">
					<input class="btn primary" type="submit" value="保存">
					<input type="button" value="取消" class="btn"/>
				</div>
			</fieldset>
		</form>
	</div>
	
  </body>
</html>
